// components/utoolsParse/widget/swiper/customPagination/customPagination.js

Component({

  /**
   * 组件的属性列表
   */
  properties: {
    currIndex:Number,
    duration:Number,
    swiperLength:Number
  },
	observers: {
	  "currIndex": function (newVal, oldVal) {
	      // 是否可见发生变化
	     this.setData({
				 timeStamp:new Date().getTime()
			 })
	  }
	},

  /**
   * 组件的初始数据
   */
  data: {
		timeStamp:'',
		waveLineSvg: ""
  },
  attached(){
		const { waveLineSvg } = require('./waveLineSvg.js');
		    this.setData({
		      waveLineSvg: waveLineSvg()
		    })
  },
  detached(){
  },

  /**
   * 组件的方法列表
   */
  methods: {
		paginationClick(e){
		  const {currentTarget:{dataset:{index}}} = e
		  this.triggerEvent('currentChange', { currIndex: index }, { bubbles: true, composed: true });
		},
    
  }
})